pixelcache: use GtkStyleContext to determine cairo_content_t for surface
authorChristian Hergert <christian@hergert.me>
Tue, 8 Sep 2015 21:48:40 +0000 (14:48 -0700)
committerChristian Hergert <christian@hergert.me>
Sun, 13 Sep 2015 20:41:19 +0000 (13:41 -0700)
commitd7eb90779f3f0b71d640c12ebcff632cf2af3974
tree45def04794f7055ffaf6d49c60e114ce35d08183
parentc1691a49640026c4701f13c96ab914cd456310b7
pixelcache: use GtkStyleContext to determine cairo_content_t for surface

We can take a fast path if the background for a widget is opaque by using
a CAIRO_CONTENT_COLOR instead of a CAIRO_CONTENT_COLOR_ALPHA surface. Most
blit'ing backends have a fast path for this, including Pixman and Quartz.

https://bugzilla.gnome.org/show_bug.cgi?id=754658
gtk/gtkpixelcache.c
gtk/gtkpixelcacheprivate.h